package com.kd.juhaowan.http.model;

import java.io.Serializable;
import java.util.List;

/**
 *    author : Android 轮子哥
 *    github : https://github.com/getActivity/EasyHttp
 *    time   : 2020/10/07
 *    desc   : 统一接口列表数据结构
 */
public class HttpListData<T> extends HttpData<HttpListData.ListBean<T>> implements Serializable {

    public static class ListBean<T> implements Serializable{

        /** 当前页码 */
        private int pageIndex;
        /** 页大小 */
        private int pageSize;
        /** 总数量 */
        private int count;
        /** 数据 */
        private List<T> list;

        private int count_value;
        private int fans_number;
        private String token;

        //顶部提示语
        private String claim_reminder;
        private int month,accum_days;
        /**
         * 判断是否是最后一页
         */
        public boolean isLastPage() {
            return false;
//            return Math.ceil((float) totalNumber / pageSize) <= pageIndex;
        }

        public int getFans_number() {
            return fans_number;
        }

        public void setFans_number(int fans_number) {
            this.fans_number = fans_number;
        }

        public int getPageIndex() {
            return pageIndex;
        }

        public int getPageSize() {
            return pageSize;
        }

        public int getCount() {
            return count;
        }

        public void setCount(int count) {
            this.count = count;
        }

        public List<T> getList() {
            return list;
        }

        public void setList(List<T> list) {
            this.list = list;
        }

        public int getCount_value() {
            return count_value;
        }

        public void setCount_value(int count_value) {
            this.count_value = count_value;
        }

        public String getToken() {
            return token;
        }

        public void setToken(String token) {
            this.token = token;
        }

        public String getClaim_reminder() {
            return claim_reminder;
        }

        public void setClaim_reminder(String claim_reminder) {
            this.claim_reminder = claim_reminder;
        }

        public int getMonth() {
            return month;
        }

        public void setMonth(int month) {
            this.month = month;
        }

        public int getAccum_days() {
            return accum_days;
        }

        public void setAccum_days(int accum_days) {
            this.accum_days = accum_days;
        }
    }
}